let { db } = require('../../tools');

module.exports = (req, res) => {
    let { id } = req.query;
    id = id - 1
    db.collection('payinfo')
        .findMany(null, data => data.skip(7 * id).limit(7))
            .then(data => {
                res.json(data)
            })
            .catch(err => res.json(err))
}